﻿using RabbitMQ.Client;

namespace YEA.Infrastructure.Gateway
{

    /// <summary>
    /// The object encapsulating all the common message properties transmitted to and received from the message bus.
    /// </summary>
    public class Message { 
        public IBasicProperties Properties { get; set;}
        public byte[] Body { get; set; }
        public string RoutingKey { get; set; }
    }
    /// <summary>
    /// The header information containing message delivery information.
    /// </summary>
    public class DeliveryHeader
    {
        public bool Redelivered { get; internal set; }
        public ulong DeliveryTag { get; internal set; }
    }
    
    
}
